// Author: wsfuyibing <682805@qq.com>
// Date: 2025-05-28

package category

import (
	"gitee.com/go-wares/framework-iris/framework/src/logics"
	"github.com/kataras/iris/v12"
	"server/app/http/logics/master/shop/category/list"
	"server/app/http/logics/master/shop/category/remove"
	"server/app/http/logics/master/shop/category/save"
)

// Controller
// 商店分类.
//
// @Middleware("authorizer")
// @Middleware("master")
type Controller struct{}

func (o *Controller) GetList(i iris.Context) {
	logics.Do(i, list.New)
}

func (o *Controller) PostRemove(i iris.Context) {
	logics.Do(i, remove.New)
}

func (o *Controller) PostSave(i iris.Context) {
	logics.Do(i, save.New)
}
